package com.originalpoint.origin_server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.originalpoint.origin_server.pojo.Dish;
import com.originalpoint.origin_server.pojo.Dto.BasePageDto;
import com.originalpoint.origin_server.pojo.Dto.DishDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {

    //增
    int insertAll(Dish dish);
    //删
    int deleteByDishId(@Param("dishId") Integer dishId);
    //改
    int updateDish(Dish dish);
    //查
    List<Dish> selectAllDish(DishDto dishDto);

    int countDish(DishDto dishDto);

}
